package com.jc.controller;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.jc.model.User;
import com.jc.service.UserService;

@Controller
@RequestMapping("/user")
public class UserController {
	@Resource
	private UserService userSerivce;
	@RequestMapping("/test")
	public String index(Map<String,Object> map){
		List<User> users = userSerivce.getUers();
		map.put("users", users);
		return "index";
	}
}
